Skip to content

ci: pin all GitHub Actions to SHAs, dependabot monthly + minor/patch grouping - #779

Merged
Suneha Bose (bosesuneha) merged 1 commit into
Azure:mainfrom
davidgamero:pin-actions-shas
Aug 7, 2026
Merged

ci: pin all GitHub Actions to SHAs, dependabot monthly + minor/patch grouping#779
Suneha Bose (bosesuneha) merged 1 commit into
Azure:mainfrom
davidgamero:pin-actions-shas

Conversation

@davidgamero

@davidgamero David Gamero (davidgamero) commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What

  • Pin every third-party action reference to a full commit SHA (with a # vX.Y.Z comment) across .github/workflows/** and .github/actions/**, including the Azure/action-release-workflows reusable workflow.
  • Dependabot config: interval: monthly for all ecosystems, and groups scoped to update-types: [minor, patch] so majors arrive as individual reviewable PRs instead of being bundled.
  • Drive-by: corrected the stale # v3.29.5 comments on github/codeql-action (the pinned SHA is actually v4.37.3). Comment-only, no SHA change.

No version changes otherwise — every ref resolves to the exact same commit main uses today.

Why

Mutable tags (@v4, @v6) are a supply-chain risk — a tag can be repointed at arbitrary code. SHA pinning makes every action ref immutable and auditable, and dependabot still bumps them (it parses the version comment).

Note on #781

An earlier revision of this PR included the Azure/k8s-deploy 6 -> 7 bump from #781. That major bump breaks the integration tests: v7 refuses manifest paths outside the workspace, so the k8s-bake output at /home/runner/work/_temp/baked-template-*.yaml is rejected and every helm-create-update / kustomize-create-update job fails. Reverted to v6 here — #781 needs its own fix (bake output relocated into the workspace) and should not be closed by this PR.

Not included

template/workflows/** (user-facing scaffolding templates) is intentionally untouched — pinning there changes generated output and golden-file expectations.

- pin every third-party action/reusable workflow ref to a full commit SHA with
  a version comment
- fold in the pending github-actions group bumps (checkout 7.0.1,
  codeql-action 4.37.3, setup-go 7.0.0, k8s-deploy v7, action-gh-release 3.0.2)
- dependabot: monthly interval, group only minor/patch so majors land as
  separate PRs
@bosesuneha
Suneha Bose (bosesuneha) merged commit 8ccc5a5 into Azure:main Aug 7, 2026
145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants